/**
 *
 */
package co.fitstart.payment.alipay.pay.handler;

import com.alipay.api.response.AlipayTradeQueryResponse;

import co.fitstart.payment.alipay.pay.AlipayCommonParameter;
import co.fitstart.payment.alipay.pay.AlipayWapPayParameter;

/**
 * @author lute
 *
 */
public interface AlipayPayHandler {

    /**
     * Request Alipay mobile web payment
     * @param commonParameter  the common request parameter
     * @param wapPayParameter  the wap pay parameter
     * @return                 the wap response form string
     */
    public String requestWapPay(AlipayCommonParameter commonParameter, AlipayWapPayParameter wapPayParameter);

    /**
     * Query Alipay order
     * @param commonParameter  the common request parameter
     * @param requestNo        the request number of request record of the order
     * @param tradeNo          the trade number from Alipay
     * @return                 the Alipay trade query response object
     */
    public AlipayTradeQueryResponse queryOrder(AlipayCommonParameter commonParameter, String requestNo, String tradeNo);

}
